package com.bilgeadam.hibernate.program;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 
 * @author Bora SAYINER
 * @since Nov 15, 2014 3:58:38 PM
 * @version 1.0.0
 */
@Entity
@Table(name = "EMPLOYEES")
public class Employee implements Serializable {

	private LoginName loginName;
	private Date hireDate;

	@EmbeddedId
	public LoginName getLoginName() {
		return loginName;
	}

	public void setLoginName(LoginName loginName) {
		this.loginName = loginName;
	}

	@Column(name = "HIRE_DATE")
	@Temporal(TemporalType.DATE)
	public Date getHireDate() {
		return hireDate;
	}

	public void setHireDate(Date hireDate) {
		this.hireDate = hireDate;
	}

}
